package com.caicai.dubbo.consumer.caicaidubboconsumer;

import cmo.caicai.service.UserInfoService;
import com.caicai.domain.User;
import org.apache.dubbo.config.annotation.Reference;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
public class ConsumerServiceImpl implements  ConsumerService{



	private static UserInfoService userInfoService;

	@Reference
	public  void setUserInfoService(UserInfoService userInfoService) {
		ConsumerServiceImpl.userInfoService = userInfoService;
	}

	@Override
	public User findById(String s) {
		return userInfoService.findById("1");
	}
}
